home *** CD-ROM | disk | FTP | other *** search
- class Guitar extends PowerUpItems
- {
- var interval_id;
- function Guitar()
- {
- super();
- }
- function activate()
- {
- this.addToScore(100);
- _global.Rescuer.invincible = true;
- _global.BigKid.hypnotize();
- this.interval_id = setInterval(this,"killPowerUp",this.POWER_ITEM_TIMER * 1000);
- this.stickToRescuer();
- this._visible = false;
- delete this.onEnterFrame;
- }
- function killCustom()
- {
- _global.BigKid.gotoAndStop("walk");
- _global.BigKid.hypnotized = false;
- _global.Rescuer.invincible = false;
- _global.BigKid.onEnterFrame = _global.BigKid.defaultEnterFrame;
- }
- }
-